﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/Layouts/Form.Master" CodeBehind="DistributePlanEdit.aspx.cs" Inherits="HHMMS.UI.Modules.PlanManager.DistributePlanEdit" %>

<asp:Content ContentPlaceHolderID="head" ID="idFormTitle" runat="server">
    <title><%=Request["title"]%></title>
  <%--   <script src="Script/Storage.js"></script>--%>
</asp:Content>
<asp:Content ContentPlaceHolderID="Content" ID="idFormMain" runat="server">
    <web:SmartFormView ID="SmartFormView1" runat="server" DataKeyNames="Id" DataSourceID="SmartDataSource1"
        Width="100%">        
        <InsertItemTemplate></InsertItemTemplate>
        <EditItemTemplate></EditItemTemplate>
        <ItemTemplate>
            <asp:TextBox ID='Id' runat='server' Text='<%# Bind("Id") %>' Width='90%'
                            Visible="false"></asp:TextBox>
          <div>
            <table cellpadding='2' cellspacing='1' width='100%' class="formitem">
             <caption><%=Request["title"]%></caption>
                 <tr> 
                     <th>                        
                        入库时间:
                    </th>
                    <td>
                            <web:DatePicker ID="dpStorageTime" Name="Time" Text='<%# Bind("Time") %>' Width='90px' MaxLength="30" runat="server" DateTimeFormat="yyyy-MM-dd"
                                validator="required"></web:DatePicker>                           
                    </td>
                    <th>
                        机型:
                    </th>
                    <td colspan="3">
                        <asp:TextBox ID='txtMtype' runat='server' Name='Mtype' Text='<%# Bind("Mtype") %>' Width='90px' MaxLength="20"
                            validator="length[1,100]"></asp:TextBox>
                    </td>
                </tr>     
                <tr>
                    <th>                        
                        机车号:
                    </th>
                    <td>
                        <asp:TextBox ID='txtLocomotiveNo' runat='server' Name='LocomotiveNo' Text='<%# Bind("LocomotiveNo") %>' Width='90px' MaxLength="20"
                            validator="length[1,100]"></asp:TextBox>
                    </td>
                    <th>                        
                        修程:
                    </th>
                    <td>
                         <asp:TextBox ID='txtRepairProcess' runat='server' Name='RepairProcess' Text='<%# Bind("RepairProcess") %>' Width='90px' MaxLength="30"
                            validator="length[1,50]"></asp:TextBox>                        
                    </td>
                    </tr> 
                    <tr> 
                    <th>
                        备注:
                    </th>
                    <td colspan="3">
                       <asp:TextBox ID='TextBox1' runat='server' Name='Remark' Text='<%# Bind("Remark") %>' Width='80%' MaxLength="20"
                            validator="length[1,200]"></asp:TextBox>
                    </td>
                </tr>           
            </table>
        </div>
        </ItemTemplate>
    </web:SmartFormView>
    
    <web:SmartSqlDataSource ID="SmartDataSource1" runat="server" SelectCommand="DistributePlan.select"
     SelectCommandAutoPageWrap="false" InsertCommand="DistributePlan.insert" UpdateCommand="DistributePlan.update">
    </web:SmartSqlDataSource>

    <!-- 页脚区域 -->
	<div class="footer">
		<asp:Button ID="Button1" runat="server" Text="确定" 
            OnClientClick="return validateForm();" onclick="Save"/>        
        <asp:Button ID="CloseButton2" runat="server" Text="关闭" OnClientClick="return closeForm();" />        
	</div>
    
    
</asp:Content>